package com.supreme.securityserver.controller;

import com.supreme.commonboot.utils.AjaxResp;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "permit")
public class PermitController {

    @PostMapping(value = "/single/insert")
    public AjaxResp singleInsert() {
        return AjaxResp.instance("singleInsert");
    }

    @PutMapping(value = "/single/update")
    public AjaxResp singleUpdate() {
        return AjaxResp.instance("singleUpdate");
    }

    @DeleteMapping(value = "/single/delete")
    public AjaxResp singleDelete() {
        return AjaxResp.instance("singleDelete");
    }

    @GetMapping(value = "/single/select")
    public AjaxResp singleSelect() {
        return AjaxResp.instance("singleSelect");
    }

    @PostMapping(value = "/group/insert")
    public AjaxResp groupInsert() {
        return AjaxResp.instance("groupInsert");
    }

    @PutMapping(value = "/group/update")
    public AjaxResp groupUpdate() {
        return AjaxResp.instance("groupUpdate");
    }

    @DeleteMapping(value = "/group/delete")
    public AjaxResp groupDelete() {
        return AjaxResp.instance("groupDelete");
    }

    @GetMapping(value = "/group/select")
    public AjaxResp groupSelect() {
        return AjaxResp.instance("groupSelect");
    }

    @PostMapping(value = "/role/insert")
    public AjaxResp roleInsert() {
        return AjaxResp.instance("roleInsert");
    }

    @PutMapping(value = "/role/update")
    public AjaxResp roleUpdate() {
        return AjaxResp.instance("roleUpdate");
    }

    @DeleteMapping(value = "/role/delete")
    public AjaxResp roleDelete() {
        return AjaxResp.instance("roleDelete");
    }

    @GetMapping(value = "/role/select")
    public AjaxResp roleSelect() {
        return AjaxResp.instance("roleSelect");
    }
}
